{% extends "base.html" %}
{% load pagebase %}
{% block title %}激活博客{% endblock %}
{% block styles %}
{{ "signup.css"|include_css }}
{% endblock %}
{% block scripts %}
{{ "signup-active.js"|include_js }}
<script type="text/javascript">
	$("#main").ready(function(){
		SignupActive.init({
			key: '{{ active_user.active_key }}',
			postUrl : '{% url apps.views.signup_active %}',
			signinUrl: '{% url apps.views.signin %}'
		});
	});
</script>
{% endblock %}
{% block sitemap %}
&gt; <a href="{% url apps.views.signup %}">申请博客</a>
&gt; <span class="current">激活博客</span>
{% endblock %}
{% block main %}
<div id="signup-tip">
	<h3>激活说明</h3>
	<p>
		请在表单中填写完您的剩余资料。
	</p>
</div>
<div id="signup-active" class="form">
	<table cellpadding="0" cellspacing="0">
		<tr>
			<td class="field">姓名：</td>
			<td>{{ active_user.realname }}</td>
		</tr>
		<tr>
			<td class="field">Email：</td>
			<td>{{ active_user.email }}</td>
		</tr>
		<tr>
			<td class="field">密码：</td>
			<td>
				<input type="password" id="password" size="20" name="password" class="text" />
			</td>
		</tr>
		<tr>
			<td class="field">密码确认：</td>
			<td>
				<input type="password" id="password-confirm" size="20" name="password-confirm" class="text" />
			</td>
		</tr>
		<tr class="sub-title">
			<td colspan="2">博客信息</td>
		</tr>
		<tr>
			<td class="field">标题：</td>
			<td><input type="text" name="blog-title" id="blog-title" class="text"></td>
		</tr>
		<tr>
			<td class="field">二级域名：</td>
			<td><input type="text" id="blog-slug" name="blog-slug" class="text" />.coderblogs.com</td>
		</tr>
		<tr>
			<td></td>
			<td>
				<div id="messageBox" class="{{ message_class }}">{{ message_text }}</div>
			</td>
		</tr>
		<tr>
			<td class="field"></td>
			<td>
				<button class="submit" type="submit">提交申请</button> <a href="{% url apps.views.signin %}">去登陆页面</a>
			</td>
		</tr>
	</table>
</div>
{% endblock %}